package com.niguang.labour.admin.entity;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 地区
 * </p>
 *
 * @author 
 * @since 2018-06-10
 */
public class Area extends Model<Area> {

    private static final long serialVersionUID = 1L;

    /**
     * 地区编号
     */
	private Integer id;
    /**
     * 名称
     */
	@TableField("area_name")
	private String areaName;
    /**
     * 父级id
     */
	private Integer pid;
    /**
     * 别名
     */
	private String alias;
    /**
     * 路径
     */
	private String path;
    /**
     * 级别
     */
	private Integer level;
	@TableField("create_time")
	private Date createTime;
	@TableField("update_time")
	private Date updateTime;
	@TableField("update_user_id")
	private Long updateUserId;
	private Boolean deleted;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(Long updateUserId) {
		this.updateUserId = updateUserId;
	}

	public Boolean getDeleted() {
		return deleted;
	}

	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}

	public static final String ID = "id";

	public static final String AREA_NAME = "area_name";

	public static final String PID = "pid";

	public static final String ALIAS = "alias";

	public static final String PATH = "path";

	public static final String LEVEL = "level";

	public static final String CREATE_TIME = "create_time";

	public static final String UPDATE_TIME = "update_time";

	public static final String UPDATE_USER_ID = "update_user_id";

	public static final String DELETED = "deleted";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Area{" +
			"id=" + id +
			", areaName=" + areaName +
			", pid=" + pid +
			", alias=" + alias +
			", path=" + path +
			", level=" + level +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", updateUserId=" + updateUserId +
			", deleted=" + deleted +
			"}";
	}
}
